package org.apache.servicecomb.samples.practise.houserush.realestate.service;

import org.apache.servicecomb.samples.practise.houserush.realestate.entity.House;
import org.apache.servicecomb.samples.practise.houserush.realestate.entity.Realestate;

import java.util.List;

public interface HouseService {
    House createHouse(Integer buildingId, House house);
    House findHouse(Integer id);
    House updateHouse(House house);
    void removeHouse(Integer id);
    List<House> indexHouses(Integer buildingId);


    List<House> lockHousesForSale(List<Integer> ids);

    int updateReleaseLockingStatesForHouses(List<Integer> ids);
}
